//
//  APMNetworkPerformanceMonitor.h
//  Q1SDK-APM
//
//  Created by ljwcode on 2023/8/10.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN



@class APMConfigModel;

@interface APMNetworkPerformanceMonitor : NSObject

@property (nonatomic, assign, getter=isEnable) BOOL enable;
@property (nonatomic, strong) APMConfigModel *config;

+ (APMNetworkPerformanceMonitor *)shareInstance;

/// 检测域名
/// - Parameter host: 域名
- (void)checkNetworkStateByHost:(NSString *)host;

/// 检测IP
/// - Parameters:
///   - ip: ip地址
///   - port: 端口号
- (void)checkNetworkStateByIp:(NSString *)ip port:(int)port;

@end

NS_ASSUME_NONNULL_END
